﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 修改微信信息参数模型
    /// </summary>
    public class ModifyWeChatInfoParam
    {
        /// <summary>
        /// open_id
        /// </summary>
        [JsonProperty("open_id"), JsonPropertyName("open_id")]
        [Required(ErrorMessage = nameof(ErrorResultEnum.WxOpenIdIsNull))]
        public string OpenId { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [JsonProperty("nick_name"), JsonPropertyName("nick_name")]
        public string NickName { get; set; }

        /// <summary>
        /// 手机
        /// </summary>
        [JsonProperty("phone"), JsonPropertyName("phone")]
        public string Phone { get; set; }

        ///// <summary>
        ///// 性别
        ///// </summary>
        //[JsonProperty("sex"), JsonPropertyName("sex")]
        //public int Sex { get; set; }
    }
}
